package com.jwiki.app.jkeeper.repository;

import java.util.List;

public interface BaseMapper<M, K> {

    M select(K id);

    M selectOne(M model);

    List<M> selectList(M model);

    long selectCount(M model);

    List<M> selectAll();

    int insert(M model);

    int insertList(List<M> models);

    int update(M model);

    int updateList(List<M> models);

    int delete(K id);

    int deleteList(List<K> ids);

}
